<?php
/**
 * 云打印平台
 * @author lss
 * 2017-08-30
 */
namespace soa\mp\cloudPrint;

use soa\client;

class printOptions  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//查询
	public function getByUser($uid,$platform = "weixin_shop_36"){
		return $this->post("api/cloudPrint/printOptions/getByUser",compact('uid','platform'));
	}

	//添加
	public function insert($uid,$info,$platform = "weixin_shop_36"){
		return $this->post("api/cloudPrint/printOptions/insert",compact('uid','info','platform'));
	}

	//获取打印请单选项
	public function getAllOptions(){
		return $this->post("api/cloudPrint/printOptions/getAllOptions",[]);
	}
}